package com.san.hkhospital.mapper;

import com.san.hkhospital.entity.Patient;
import com.san.hkhospital.entity.PatientExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * ClassName:PatientMapper
 * PackageName:com.san.hkhospital.mapper
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 19:26
 */


public interface PatientMapper {
    long countByExample(PatientExample example);

    int deleteByExample(PatientExample example);

    int deleteByPrimaryKey(Integer patientId);

    int insert(Patient record);

    int insertSelective(Patient record);

    List<Patient> selectByExample(PatientExample example);

    Patient selectByPrimaryKey(Integer patientId);

    int updateByExampleSelective(@Param("record") Patient record, @Param("example") PatientExample example);

    int updateByExample(@Param("record") Patient record, @Param("example") PatientExample example);

    int updateByPrimaryKeySelective(Patient record);

    int updateByPrimaryKey(Patient record);
}